Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn

1 <?php include('header.php'); ?>
2
3
4
5
6
7     <!--
this is for donor registraton -->
8     <div
class="login" style="background-color:#fff;">
9         <h1
class="text-center" style="background-color:#272327;color: #fff;">Congratulations....!!!</h1>
10                 <p
class="text-center">You have been registered!</p>
11             <div
class="formstyle" style="float: right;padding:20px;border: 1px solid lightgrey;margin-right:415px; margin-bottom:30px;background-color:#f3f3f8;color:#141313;">
12                 <form action=
"" method="post" class="text-center">
13                     <label>
14                         Email: <input type=
"email" name="email" placeholder="username" required>
15                     </label><br><br>
16                     <label>
17                         Password: <input type=
"password" name="password" placeholder="password" required>
18                     </label><br><br>
19                     <button name=
"submit" type="submit" style="margin-left:36px;width: 85px;border-radius: 3px;">Login</button> <br>
20
21                     <!-- Not a member?<a href=
"donor_seeker_regi.php" title="create a account" target="" style="color:black;">&nbsp;Sign Up</a> <br> -->
22
23
24                     <!-- login validation -->
25             <?php
26         
27                             include(
'config.php');
28                             
if(isset($_POST["submit"])){
29                             
30
31                             $sql=
"SELECT * FROM patient WHERE email= '" . $_POST["email"]."' AND password= '" . $_POST["password"]."'";
32
33                             $result = $conn->query($sql);
34
35                                     
if ($result->num_rows > 0) {
36                                             
// $_SESSION["email"]= $_POST["email"];
37                                             
// $_SESSION['userstatus']= "yes";
38                                             echo
"<script>location.replace('patient/dashboard.php');</script>";
39                                                 
// echo "u are supposed to redirect to ur profile";
40                                         }
else {
41                                             echo
"<span style='color:red;'>Please, check username and password</span>";
42                                         }
43                         $conn->close();
44                     }
45                     
46             ?>
47         <!-- login validation End-->
48
49
50                 </form> <br>&nbsp;&nbsp;&nbsp;
51                 
52                 <br>
53
54                 
55         
56                 
57             
58         
59     </div>
60     
61     
62 </div>
63     
64     
65
66     
67  <?php include(
'footer.php'); ?>
68
69
70     
71     </div><!-- containerFluid Ends -->
72
73
74
75
76     <script src=
"js/bootstrap.min.js"></script>
77
78
79     
80 </body>
81 </html>


Gõ tìm kiếm nhanh...